import 'package:fish_redux/fish_redux.dart';

enum UserCenterAction {
  action,
  onTap,
  onLogout,
  onGasTap,
}

class UserCenterActionCreator {
  static Action onAction() {
    return const Action(UserCenterAction.action);
  }

  static Action onTap(index) {
    return Action(UserCenterAction.onTap, payload: index);
  }

  static Action onLogout() {
    return const Action(UserCenterAction.onLogout);
  }

  static Action onGasTap(index) {
    return Action(UserCenterAction.onGasTap, payload: index);
  }
}
